﻿using HoverTree.HoverTreeFrame;
using HoverTree.Model;
using System;
using System.Collections.Generic;

namespace HoverTreeMobile.hvtimg
{
    public partial class ImageSetList : System.Web.UI.Page
    {
        protected int _totalCount, _totalPageCount, _pageIndex, _pageSize;
        protected void Page_Load(object sender, EventArgs e)
        {
            _pageIndex = RequestHelper.GetQueryInt("pi", 1);
            _pageSize = 10;

            //ImageSetSelect m_select = new ImageSetSelect();
            PictureSelect m_select = new PictureSelect();
            m_select.HvtIsShow = 1;
            //m_select.HvtImageSetId = RequestHelper.GetQueryInt("isid", -1);

            List<PictureInfo> m_pictureList = new List<PictureInfo>();
            m_pictureList = new HoverTree.BLL.HvtPicture().GetListWithImageSetTitle(m_select, 3, _pageSize, _pageIndex, out _totalCount, out _totalPageCount);

            rptList.DataSource = m_pictureList;
            rptList.DataBind();

            ltlPages.Text = HoverTree.HoverTreeFrame.WebUI.KeleyiPager.BuildPageIndex(_pageIndex, _totalPageCount);
        }
    }
}